//
//  XFSystem.h
//  WorkManager
//
//  Created by ukongm on 17/2/12.
//  Copyright © 2017年 ukongm. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MessageUI/MessageUI.h>
/**
 @"iPhone 4S (A1387/A1431)";
 @"iPhone 5 (A1428)";
 @"iPhone 5 (A1429/A1442)";
 @"iPhone 5c (A1456/A1532)";
 @"iPhone 5c (A1507/A1516/A1526/A1529)"
 @"iPhone 5s (A1453/A1533)";
 @"iPhone 5s (A1457/A1518/A1528/A1530)"
 @"iPhone 6 Plus (A1522/A1524)";
 @"iPhone 6 (A1549/A1586)";
 */
typedef NS_ENUM(NSInteger ,XFSystemDeviceType ) {
    XFSystemDeviceTypeSimulator = 0, //是模拟器
    XFSystemDeviceType4S,
    XFSystemDeviceType5,
    XFSystemDeviceType5C,
    XFSystemDeviceType5S,
    XFSystemDeviceType6,
    XFSystemDeviceType6Plus,
    XFSystemDeviceType6S,
    XFSystemDeviceType6SPlus,
    XFSystemDeviceType7,
    XFSystemDeviceType7Plus,
    XFSystemDeviceType8,
    XFSystemDeviceType8Plus,
    XFSystemDeviceTypeSE,
    XFSystemDeviceTypeX,
};

@interface XFSystem : NSObject


/**
 打开系统设置页面
 */
+ (void)openSetting;

/**
 调起电话

 @param phoneStr 电话号码
 */
+ (void)callPhone:(NSString*)phoneStr;

/**
 发短信

 @param phoneStr 电话号码
 @param target   目标控制器，从该控制器推出发短信的界面
 */
+ (void)sendMailForPhone:(NSString *)phoneStr target:(UIViewController<MFMessageComposeViewControllerDelegate>*)target;

/**
 获取设备类型

 @return 类型枚举
 */
+ (XFSystemDeviceType)getDeviceType;

@end
